// 切换全屏hook
const useFullScreen = () => {
    // 是否切换全屏
    const isFullscreen = ref(false)

    const setFullScreen = () => {
        const full = document.fullscreenElement
        if (!full) {
            document.documentElement.requestFullscreen()
            isFullscreen.value = true
        } else {
            document.exitFullscreen()
            isFullscreen.value = false
        }
    }
    return { isFullscreen, setFullScreen }
}
export default useFullScreen
